﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Photo.Core.Dtos.Dto
{
    /// <summary>
    /// EleTree dto（树形组件）
    /// 组件地址：https://dev.layuion.com/extend/eleTree/#doc
    /// </summary>
    public class EleTreeDto
    {
        /// <summary>
        /// 节点唯一标识
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 节点显示文本
        /// </summary>
        public string Label { get; set; }
        /// <summary>
        /// 父级id
        /// </summary>
        public string ParentId { get; set; } = "0";

        /// <summary>
        /// 子列表
        /// </summary>
        public List<EleTreeDto> Children { get; set; }
    }
}
